<?php
App::uses('AppModel', 'Model');
/**
 * Departamento Model
 *
 * @property Criadero $Criadero
 */
class Ingreso extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasOne = array(
		'Cobrobanco' => array(
			'className' => 'Cobrobanco',
			'foreignKey' => 'ingreso_id',
			'dependent' => false
		), 
        'Cobroefectivo'=>array(
           'className' => 'Cobroefectivo',
			'foreignKey' => 'ingreso_id',
			'dependent' => false
        )
	);
    
    public $belongsTo = array(
       'Tipospago'=>array(
          'className' => 'Tipospago',
		  'foreignKey' => 'tipospago_id',
       )
    );

}
